package com.wx.consumer.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component
@FeignClient(value= "eureka-provider", fallbackFactory = ClientServiceFallbackFactory.class)
public interface HelloRemote {

    // restful api 调用
    @GetMapping("/hello")
    public String hello();
}
